Stock View
π€β‘οΈπ Stock View Request (Client β WCF REST Service)β
This message is sent by the Client to the WCF REST Service to get the uploaded holdings (DP, Pool & SAR), Collateral, and todayβs buy quantity under Delivery product.
The Service validates the request based on the parameters sent and returns the response in string format.
In case of failure, it sends a failure response.
π Tags and Fieldsβ
| Tag | Field Name | Reqβd | Data Type (Max) | Comment |
|---|---|---|---|---|
| 63 | Message Version | Y | String (10) | Fixed Value β FT1.0 |
| 64 | Message Type | Y | Integer | Fixed Value β 328 |
| 67 | Reserved PG Dealer Id | O | String (10) | Reserved PG Dealer Id |
| 4 | Session Id | Y | String (100) | Must match session id received on logon response |
| 201 | User Id | Y | String (10) | Web Retail User Id |
| 202 | Group Id | Y | String (10) | Group Id of the user |
| 999 | Check Sum Value | Y | Integer | Checksum generated based on entire string. Always appended at end |
Examplesβ
β String to be passed for generating checksum:β
63=FT1.0|64=328|67=RESERVEDPG|4=RESERVEDPG_412201710722|201=HARDIK61|202=HO
β String to be passed along with checksum:β
63=FT1.0|64=328|67=RESERVEDPG|4=RESERVEDPG_412201710722|201=HARDIK61|202=HO|999=145
π‘π¨ Stock View Response (WCF REST Service β Client)β
π Tags and Fieldsβ
| Tag | Field Name | Reqβd | Comment |
|---|---|---|---|
| 63 | Message Version | Y | Fixed Value β FT1.0 |
| 64 | Message Type | Y | Fixed Value β 329 |
| 18 | Response Code | Y | Response Code:0 β Failure1 β Success |
| 19 | Response Message | O | Contains key StockView with parameters as an array of JSON objects |
π§© StockView JSON Parametersβ
| Column Name | Description |
|---|---|
sDPAvailable | Available DP Quantity |
sPOOLAvailable | Pool Available |
sRecvAvailable | Available Receivable Quantity |
sCurRecvAvailable | Current Receivable Available |
TOTALQUANTITY | Total Available Quantity |
sDPBlock | Blocked DP Quantity |
sPOOLBlock | Pool Blocked |
sRecvBlock | Blocked Receivable Quantity |
sCurRecvBlock | Current Receivable Blocked |
TOTALBLOCKQUANTITY | Total Blocked Quantity |
sDPFree | Free DP Quantity |
sPOOLFree | Pool Free |
sRecvFree | Free Receivable Quantity |
sCurvRecvFree | Current Receivable Free |
TOTALFREEQUANTITY | Total Free Quantity |
nBuyAvgPrice | Buy Average Price |
ISIN | ISIN |
nMarketSegmentId | Market Segment Id |
nToken | Token |
sSeries | Series |
sSymbol | Symbol |
POOLPriority | Pool Priority |
OtherSegmentTokens | Other Segment Tokens (e.g., 1:1660,8:500875) |
sShortSellQty | Short Sell Quantity |
sTotalCollateralQty | Total Collateral Quantity |
sCreditForSale | Credit for Sale |
sTotalSecurityCollateral | Total Security Collateral |
nPreferredMTMToken | Preferred Token for MTM |
nPreferredMTMMarketSegmentId | Preferred Segment for MTM |
nNSETradedSellQty | NSE Sell Qty |
nBSETradedSellQty | BSE Sell Qty |
Exampleβ
β Success Caseβ
63=FT1.0|64=329|18=1|19={
"StockView":[
{
"sDPAvailable":0,"sPOOLAvailable":0,"sRecvAvailable":5,"sCurRecvAvailable":0,"TOTALQUANTITY":5,
"sDPBlock":0,"sPOOLBlock":0,"sRecvBlock":3,"sCurRecvBlock":0,"TOTALBLOCKQUANTITY":3,
"sDPFree":0,"sPOOLFree":0,"sRecvFree":2,"sCurvRecvFree":0,"TOTALFREEQUANTITY":2,
"nBuyAvgPrice":17000.00,"ISIN":"INE154A01025","nMarketSegmentId":1,"nToken":1660,
"sSeries":"EQ","sSymbol":"ITC","POOLPriority":1,"OtherSegmentTokens":"1:1660,8:500875",
"sShortSellQty":0,"sTotalCollateralQty":0,"sCreditForSale":466.00,"sTotalSecurityCollateral":407.00,
"nPreferredMTMToken":1660,"nPreferredMTMMarketSegmentId":1,"nNSETradedSellQty":3,"nBSETradedSellQty":0
},
{
"sDPAvailable":10,"sPOOLAvailable":5,"TOTALQUANTITY":15,"sDPBlock":10,"sPOOLBlock":1,
"TOTALBLOCKQUANTITY":11,"sDPFree":0,"sPOOLFree":4,"TOTALFREEQUANTITY":4,
"nBuyAvgPrice":700.00,"ISIN":"INE059A01026","nMarketSegmentId":1,"nToken":694,
"sSeries":"EQ","sSymbol":"CIPLA","POOLPriority":1,"OtherSegmentTokens":"1:694,8:500087",
"sTotalCollateralQty":10,"sTotalSecurityCollateral":10395.00
}
]
}